<?php
require_once(ROOT_DEFAULT_MODELS.DS.'Models_Base.php');
class Model_Banner extends Zend_Db_Table_Abstract{
	protected $db;
	public function __construct(){
		$this->db=Zend_Registry::get('db');
	}
	public function banner(){
		$sql=$this->db->query("select * from banner");
		return $sql->fetchAll();
	}

}